package cate.game.activity.uppool.msg;

import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBUpPool;
import cate.game.res.MixRes;
import cate.game.res.MixResItem;
import cate.game.res.RewardShow;
import cate.game.role.bag.hero.Hero;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class DrawRewardShowResp implements MsgOutput {

    @NoteField("功能id")
    public int funcId;

    @NoteField("抽到的奖励")
    public RewardShow show;

    @NoteField(value = "放逐英雄",detail = "如果是英雄召唤，可能有值")
    public List<Hero> sacrifices = new LinkedList<>();

    @NoteField(value = "额外奖励",detail = "如英雄经验，放逐英雄等的奖励")
    public MixRes reward = new MixRes();

    @NoteField(value = "自然系许愿碎片")
    public List<MixResItem> fragments = new ArrayList<>();

    public DrawRewardShowResp() {
    }

    public DrawRewardShowResp(RewardShow show) {
        this.show = show;
    }

    public DrawRewardShowResp(int funcId, RewardShow show) {
        this.funcId = funcId;
        this.show = show;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBUpPool.REWARD_SHOW_RESP;
    }
}
